import React from 'react'
import {Route, IndexRoute} from 'react-router'

import App from './App'
import Index from '../demo/Index'
import Next from '../demo/Next'
import List from '../list/IscrollList'
import Detail from '../list/Detail'

const rootRoute = (
  <Route path="/" component={App}>
    <IndexRoute component={List}/>
    <Route path="/next" component={Next}/>
    <Route path="/list" component={List}/>
    <Route path='/detail' component={Detail}/>
  </Route>
)

export default rootRoute
